﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace XWord.WPF.ApplicationFramework.TestModules.validationsimple
{
    /// <summary>
    /// Interaction logic for TypeValidationSimple.xaml
    /// </summary>
    public partial class TypeValidationSimple : UserControl
    {
        public TypeValidationSimple()
        {
            InitializeComponent();
            List<string> list = new List<string>();
            List<People> list2 = new List<People>();
            for (int i = 0; i < 10; i++)
            {
                list.Add(i.ToString());
                list2.Add(new People(){ Name="people"+i});
            }

            Element_ListBox.ItemsSource = list;

            Element_ListBox2.ItemsSource = list2;
        }
    }

    public class People
    {
        public string Name { get; set; }
    }
}
